package com.psfd.demo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 图书信息表
 * </p>
 *
 * @author 撒旦
 * @since 2020-07-10
 */
public class BookInformation extends Model<BookInformation> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//图书编号

    private String barcode;//条形码

    private String bookname;//图书名称

    private Integer typeid;//图书类型编号

    private String author;//作者

    private String translator;//译者

    @TableField("ISBN")
    private String isbn;//出版社编号

    private BigDecimal price;//价格

    private Integer page;//页码

    private Integer bookcase;//书架编号

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime inTime;//录入时间

    private String operator;//操作员

    private Integer del;//是否已经下架


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTranslator() {
        return translator;
    }

    public void setTranslator(String translator) {
        this.translator = translator;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getBookcase() {
        return bookcase;
    }

    public void setBookcase(Integer bookcase) {
        this.bookcase = bookcase;
    }

    public LocalDateTime getInTime() {
        return inTime;
    }

    public void setInTime(LocalDateTime inTime) {
        this.inTime = inTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BookInformation{" +
        "id=" + id +
        ", barcode=" + barcode +
        ", bookname=" + bookname +
        ", typeid=" + typeid +
        ", author=" + author +
        ", translator=" + translator +
        ", isbn=" + isbn +
        ", price=" + price +
        ", page=" + page +
        ", bookcase=" + bookcase +
        ", inTime=" + inTime +
        ", operator=" + operator +
        ", del=" + del +
        "}";
    }
}
